﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
using System.Windows.Media.Imaging;

namespace LEDStripMixer
{
    public static class ImageHelper
    {
        public static Image ConvertToBitmap(this Image image, String path)
        {
            var swatch2 = new BitmapImage(new Uri(@"" +path, UriKind.Relative));
            image.Source = swatch2;
            return image;
        }
    }
}
